package com.sloan.community.common.command;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class CommentCommand {

//    @Min(value = 1,message = "用户ID不能为空")
//    @NotNull(message = "用户ID不能为空")
//    private Long userId;

    @Min(value = 0,message = "用户ID不能为空")
    @NotNull(message = "用户ID不能为空")
    private Long replyUserId;

    @Length(min = 1,max = 500,message = "回复内容不能超过500个字")
    @NotBlank(message = "回复内容不能为空")
    private String content;

    @Min(value = 0,message = "评论不能为空")
    @NotNull(message = "评论不能为空")
    private Long parentCommentId;

}
